home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / March 96 / Re Initializing an Extension.1 < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.6 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Initializing an Extension
  2. Sent:        3/5/96 5:25 PM
  3. Received:    3/5/96 4:41 PM
  4. From:        Damon Cokenias, cokenias@mtn-palace.com
  5. Reply-To:    ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >If I can't get access to my FW_Cpart in my version of
  9. >InitMySOMNautilusShellExtension, should I make a second call in
  10. >MyCreateXYZProc of the following form?
  11. >
  12. >     theExtension->SetObjectOfInterest (ev, fMyObjectOfInterest);
  13. >
  14. >Many thanks,
  15. >Bill Finzer
  16. >Educational Technology Director
  17. >Key Curriculum Press
  18.  
  19. That's correct.  You could even pass fMyObjectOfInterest as a parameter to
  20. your extension's InitMySOMNautilusShellExtension method.
  21.  
  22. (By the way, when I copy/pasted my extension code, I forgot to rename that
  23. method.  You would almost certainly call it something like
  24. InitXYZExtension).
  25.  
  26. You must remember that by storing a C++ object pointer in your extension
  27. you are responsible for keeping the extension and part built with the same
  28. version of the same sources with the same compiler (since C++ object
  29. layouts differ among compilers/compiler versions).  On a related note, an
  30. extension should *never* reveal the C++ object to its clients.  They
  31. wouldn't know what to do with it :-)
  32.  
  33. -Damon
  34.  
  35.  
  36. +-----------------------------------------------------------------------+
  37. |   /\    Damon Cokenias                                                |
  38. |  /^^\   cokenias@mtn-palace.com                                       |
  39. | /____\  Visit the Mountain Palace at http://www.netgate.net/~cokenias |
  40. +-----------------------------------------------------------------------+
  41.  
  42.